package com.framework.base.util;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
/**
 * 处理公共的action权限问题
 * @author gyd
 *
 */
public class CommonActionPower {
	private static final String TXT="action.txt";
	public static String getAction() throws Exception{
		StringBuffer action=new StringBuffer();
		try {
			BufferedReader read=new BufferedReader(new InputStreamReader(new FileInputStream(CommonActionPower.class.getResource("/").getPath()+TXT)));
			while(read.read()!=-1){
				action.append(read.readLine());
			}
			return action.toString();
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	} 
	public static void main(String args[]){
		try {
			System.out.println(getAction());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
